@import "./common.css";
html {
    overflow-x: hidden;
}
body {
    overflow-x: hidden;
}

header {
    width: 100%;
    position: relative;
    h1 {
        font-size: 30px;
        font-weight: bold;
        text-align: center;
    }
    > img {
        width: 100%;
    }
    .box {
        margin: 20px 20px 20px;
        position: absolute;
        z-index: 2;
        bottom: 0;
        width: calc(100% - 40px);
        height: 70%;
        background: rgba($color: #e6111f, $alpha: 0.7);

        .inner-box {
            box-sizing: border-box;
            padding: 5px;
            border: 1px solid white;
            margin: 10px;
            width: calc(100% - 20px);
            height: calc(100% - 20px);
            .top {
                display: flex;
                align-items: center;
                justify-content: center;
                color: white;
                font-size: 13px;
            }
            .bottoom {
                height: 100%;
                position: relative;
                display: flex;
                align-items: center;
                justify-content: center;
                flex-wrap: wrap;
                span {
                    display: inline-block;
                    font-size: 38px;
                    color: white;
                    font-weight: bold;
                }
                img {
                    // position: absolute;
                    width: 100%;
                }
            }
        }
    }
}

main {
    section {
        &.form {
            width: 100%;
            height: 100%;
            position: relative;

            .yzm {
                position: absolute;
                bottom: 135px;
                right: 20px;
            }
            form {
                width: 100%;
                height: 100%;

                .font2 {
                    img {
                        height: 22px;
                    }

                    color: #c74767;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    font-size: 12px;

                    span {
                        padding: 1px;
                        background: #f33531;
                        color: white;
                        font-weight: bold;
                        display: inline-block;
                        margin: 0px 5px;
                        border-radius: 6px;
                    }
                }
                .form-box {
                    margin: 10px 0px;
                    padding: 0px 10px;
                    input[type="text"] {
                        border: 1px solid #eee;
                        outline: none;
                        border-radius: 3px;
                        font-size: 14px;
                        box-sizing: border-box;
                        width: 100%;
                        height: 38px;
                        margin: 0;
                        padding-left: 8px;
                        padding-right: 36px;
                        border: 1px solid #f1f1f1;
                        line-height: 20px;
                        margin-bottom: 10px;
                    }
                    textarea{
                        border: 1px solid #eee;
                        outline: none;
                        border-radius: 3px;
                        font-size: 14px;
                        box-sizing: border-box;
                        width: 100%;
                        height: 150px;
                        margin: 0;
                        padding-left: 8px;
                        padding-right: 36px;
                        border: 1px solid #f1f1f1;
                        line-height: 20px;
                        margin-bottom: 10px;
                    }

                    .tip-info {
                        margin-bottom: 15px;
                        display: flex;
                        align-items: center;
                        justify-content: center;
                        span:nth-of-type(1) {
                            margin-right: 15px;
                            display: flex;
                            align-items: center;
                            justify-content: center;
                            border: 1px solid #cecece;
                            width: 13px;
                            height: 13px;
                            border-radius: 50px;
                        }
                        span:nth-of-type(2){
                                color: #d80233;
                        }
                        font-size: 12px;
                        text-align: center;
                        color: #66667f;
                       
                    }
                    .submit-bg {
                        background: #f33531;
                        border-radius: 3px;
                        position: relative;
                        // 动画
                        animation-name: mybuttonchange; /*动画的名字*/
                        animation-duration: 1000ms; /*定义动画完成一个周期所需要的时间，以秒或毫秒计*/
                        animation-iteration-count: infinite; /*定义动画的播放次数，这里是无限播放*/
                        animation-direction: alternate; /*定义是否应该轮流反向播放动画，这里是动画轮流播放*/

                        @keyframes mybuttonchange {
                            /*mychange是动画的名字上面有用到*/
                            0% {
                                transform: scale(1);
                            }
                            100% {
                                transform: scale(1.05);
                            }
                        }

                        img {
                            position: absolute;
                            left: 0;
                            // 动画
                            animation-name: mychange2; /*动画的名字*/
                            animation-duration: 2000ms; /*定义动画完成一个周期所需要的时间，以秒或毫秒计*/
                            animation-iteration-count: infinite; /*定义动画的播放次数，这里是无限播放*/

                            @keyframes mychange2 {
                                0% {
                                    left: 0%;
                                }
                                99% {
                                    left: 100%;
                                }

                                100% {
                                    left: 0;
                                }
                            }
                        }
                        input[type="submit"] {
                            outline: none;
                            font-size: 14px;
                            border-radius: 3px;

                            box-sizing: border-box;
                            width: 100%;
                            height: 38px;
                            margin: 0;
                            line-height: 20px;
                            color: white;
                            text-align: center;
                            background: none;
                        }
                    }
                }
            }
        }

        &.list {
            background-color: rgba(167, 27, 27, 0.05);
            height: 251px;
            margin: 0px 15px;
            border-radius: 22px;

            p {
                color: #f33531;
                font-size: 18px;
                font-weight: bold;
                text-align: center;
                padding-top: 23px;
            }

            .swiper-block {
                margin-top: 20px;
                height: 150px;
                overflow: hidden;

                .swiper-container {
                    width: 100%;
                    height: 150px;
                    .swiper-wrapper {
                        height: 50px;

                        .swiper-slide {
                            display: flex;
                            align-items: center;
                            justify-content: space-around;
                            color: #f33531;
                            img {
                                width: 18px;
                            }

                            span {
                                display: flex;
                                justify-content: center;
                                &:nth-of-type(2){
                                    width: 50px;
                                }

                                &:nth-of-type(3){
                                    width: 130px;
                                }

                                &:nth-of-type(4){
                                    width: 80px;
                                }
                            }
                        }
                    }
                }
            }
        }

        &.question {
            .title {
                position: relative;
                background: url(./../images/web2-main1.png) no-repeat;
                height: 80px;
                width: 100%;
                background-size: 100% 80px;
                p {
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    height: 100%;
                    font-size: 25px;
                    color: #d14841;
                    font-weight: bold;
                }
            }
            .small-title {
                font-size: 13px;
                width: 100%;
                display: inline-block;
                text-align: center;
            }

            .questions {
                padding: 10px;
                .q1 {
                    display: flex;
                    .left {
                        width: 30%;
                        font-size: 26px;
                        color: rgb(209, 72, 65);
                        text-align: center;
                    }
                    .right {
                        font-size: 16px;
                        width: 70%;
                        background: #db0e1a;
                        color: white;
                        border-radius: 25px;
                        display: flex;
                        align-items: center;
                        justify-content: center;
                        padding: 10px;
                        box-sizing: border-box;
                    }
                }
                .a1 {
                    margin-top: 10px;
                    border: 1px dashed #f8baba;
                    border-radius: 23px;
                    padding: 10px;
                    color: rgb(209, 72, 65);
                    font-size: 13px;
                }
            }

            .our-do {
                background: #f7c3c3;
                padding: 10px;
                box-sizing: border-box;
                > p {
                    color: rgb(209, 72, 65);
                    font-size: 13px;
                    background: #eeebeb;
                    padding: 10px;
                }
                > div {
                    margin-top: 10px;
                    display: flex;
                    justify-content: flex-end;
                    .talk {
                        font-size: 14px;
                        width: 100%;
                        box-sizing: border-box;
                        height: 90px;
                        padding: 10px;
                        border: 1px dashed white;
                    }
                    .avatar {
                        width: 85px;
                        height: 92px;

                        img {
                            width: 85px;
                            height: 92px;
                        }
                    }
                }
            }
        }

        &.question2 {
            .title {
                position: relative;
                background: url(./../images/web2-main1.png) no-repeat;
                height: 80px;
                width: 100%;
                background-size: 100% 80px;
                p {
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    height: 100%;
                    font-size: 25px;
                    color: #d14841;
                    font-weight: bold;
                }
            }
            .small-title {
                font-size: 13px;
                width: 100%;
                display: inline-block;
                text-align: center;
            }

            ul {
                background: #f7c3c3;
                li {
                    margin-bottom: 60px;
                    height: 120px;
                    .name {
                        width: 100%;
                        height: 42px;
                        span {
                            display: inline-block;
                            height: 100%;
                            padding: 0px 20px;
                            box-sizing: border-box;
                            background: red;
                            color: white;
                            font-weight: bold;
                            font-size: 22px;
                            line-height: 2;
                        }
                    }
                    .details {
                        display: flex;
                        img {
                            width: 100px;
                        }
                        div {
                            background: #e5e5e5;
                            width: 100%;
                            padding: 15px 10px;
                            box-sizing: border-box;
                            font-size: 12px;
                        }
                    }
                }
            }
        }

        &.video {
            video {
                width: 100%;
                height: 300px;
            }
        }

        &.question3 {
            .title {
                position: relative;
                background: url(./../images/web2-main1.png) no-repeat;
                height: 80px;
                width: 100%;
                background-size: 100% 80px;
                p {
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    height: 100%;
                    font-size: 25px;
                    color: #d14841;
                    font-weight: bold;
                }
            }
            .small-title {
                margin-bottom: 10px;

                font-size: 13px;
                width: 100%;
                display: inline-block;
                text-align: center;
            }

            .details {
                background: #f8bdbd;
                font-size: 12px;
                color: rgb(137, 137, 137);
                line-height: 1.5;
                padding: 10px;
                p {
                    line-height: 1.5;
                    padding: 15px 0px;
                    text-align: center;
                }
            }
        }
    }
}

footer {
    color: #fafafa;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 50px;
    p {
        text-align: center;
        font-size: 15px;
        color: #9999;
    }
    .call-me {
        background: #f13f40;
        height: 50px;
        position: fixed;
        z-index: 3;
        bottom: 0;
        left: 0;
        width: 100%;
        border-radius: 25px;
        a {
            color: #fafafa;

            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            img{
                margin-right: 10px;
            }
        }
    }
}
